            var chart;
            var graph;
            
var chartData = [
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.92,
    'Botev Plovdiv': 2.9,
    'The Draw': 3.55
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.68,
    'Botev Plovdiv': 2.68,
    'The Draw': 3.6
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.74,
    'Botev Plovdiv': 2.66,
    'The Draw': 3.65
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.74,
    'Botev Plovdiv': 2.74,
    'The Draw': 3.7
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.82,
    'Botev Plovdiv': 2.74,
    'The Draw': 3.8
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.88,
    'Botev Plovdiv': 2.82,
    'The Draw': 3.85
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.86,
    'Botev Plovdiv': 2.88,
    'The Draw': 3.45
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.92,
    'Botev Plovdiv': 2.86,
    'The Draw': 3.5
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.9,
    'Botev Plovdiv': 2.88,
    'The Draw': 3.55
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.9,
    'Botev Plovdiv': 2.9,
    'The Draw': 3.7
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.84,
    'Botev Plovdiv': 2.82,
    'The Draw': 3.5
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.86,
    'Botev Plovdiv': 2.84,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.84,
    'Botev Plovdiv': 2.86,
    'The Draw': 3.8
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.82,
    'Botev Plovdiv': 2.84,
    'The Draw': 3.55
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.92,
    'Botev Plovdiv': 2.82,
    'The Draw': 3.65
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.82,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.7
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date': '2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  },
  {
    'date':'2017-'+"<br>"+'04-26',
    'Cherno More': 1.8,
    'Botev Plovdiv': 2.8,
    'The Draw': 3.75
  }
  
];

AmCharts.ready(function () {
  // SERIAL CHART
  chart = new AmCharts.AmSerialChart();
  chart.dataProvider = chartData;
  chart.categoryField = "date";
  chart.startDuration = 0.5;
  chart.balloon.color = "#000000";
  
  // AXES
  // category
  var categoryAxis = chart.categoryAxis;
  categoryAxis.fillAlpha = 1;
  categoryAxis.fillColor = "#FAFAFA";
  categoryAxis.gridAlpha = 0;
  categoryAxis.axisAlpha = 0;
  categoryAxis.gridPosition = "start";
  
  // value
  var valueAxis = new AmCharts.ValueAxis();
  valueAxis.title = "好评率";
  valueAxis.dashLength = 5;
  valueAxis.axisAlpha = 0;
  valueAxis.minimum = 1;
  valueAxis.maximum = 6;
  valueAxis.gridCount = 10;
  chart.addValueAxis(valueAxis);
  
  // GRAPHS
  // Italy graph						            		
  var graph = new AmCharts.AmGraph();
  graph.title = "统计好评率";
  graph.valueField = "Cherno More";
  graph.balloonText = " [[category]]: [[value]]";
  graph.bullet = "round";
  chart.addGraph(graph);
  

  
  // CURSOR
  var chartCursor = new AmCharts.ChartCursor();
  chartCursor.cursorPosition = "mouse";
  chartCursor.zoomable = false;
  chartCursor.cursorAlpha = 0;
  chart.addChartCursor(chartCursor);                
  
  // LEGEND
  var legend = new AmCharts.AmLegend();
  legend.useGraphSettings = true;
  chart.addLegend(legend);
  
  // WRITE
  chart.write("container");
});